﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="UserNew.aspx.cs" Inherits="Portal_KonTum.Admin.UserNew" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="container_12">
        
        <!-- Dashboard icons -->
        <div class="grid_7">
            <a class="dashboard-module" href="UserMn.aspx">
            <img alt="edit" height="64" src="css/images/Crystal_Clear_user.gif" tppabs="http://www.xooom.pl/work/magicadmin/images/Crystal_Clear_user.gif" width="64" /> <span>Quản Lý User</span> </a>
            <a class="dashboard-module" href="#">
            <img alt="edit" height="64" src="css/images/Crystal_Clear_settings.gif" tppabs="http://www.xooom.pl/work/magicadmin/images/Crystal_Clear_settings.gif" width="64" /> <span>Cài Đặt</span> </a>
            <div style="clear: both">
            </div>
        </div>
        <!-- End .grid_7 -->
        <!-- Form elements -->    
        
        <div class="grid_12">
            <div class="module">
                <div>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" class="notification n-error"/>
                    <asp:Label ID="lb_note" runat="server" Text="Label" Visible="false" class="notification n-error"></asp:Label>
                </div>
                <h2>
                    <span>Chỉnh sửa thông tin thành viên</span></h2>
                <div class="module-body">
                    <p>
                        <label>
                        Tên tài khoản</label>
                        <asp:TextBox ID="txt_tentk" class="input-medium" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RFV_tentk" runat="server" ControlToValidate="txt_tentk" ErrorMessage="Chưa nhập tên tài khoản">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <label>
                        Mật khẩu</label>
                        <asp:TextBox ID="txt_mk" class="input-medium" TextMode="Password" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RFV_mk" runat="server" ControlToValidate="txt_mk" ErrorMessage="Chưa nhập mật khẩu">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <label>Nhập Lại Mật khẩu</label>
                        <asp:TextBox ID="txt_mk1" class="input-medium" TextMode="Password" runat="server"></asp:TextBox>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                            ControlToCompare="txt_mk" ControlToValidate="txt_mk1" 
                            ErrorMessage="Mật khẩu nhập lại không chính xác">*</asp:CompareValidator>
                    </p>
                    <p>
                        <label>
                        Phân quyền</label>
                        <asp:DropDownList ID="DL_Role" runat="server" class="input-short">
                        </asp:DropDownList>
                    </p>
                    <p>
                        <label>
                        Trạng thái</label>
                        <asp:DropDownList ID="DL_status" runat="server" class="input-short">
                        </asp:DropDownList>
                    </p>
                    <p>
                        <label>
                        Email</label>
                        <asp:TextBox ID="txt_email" class="input-medium" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RFV_email" runat="server" ControlToValidate="txt_email" ErrorMessage="Chưa nhập Email">*</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="regexEmailValid" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txt_email" ErrorMessage="Chưa nhập đúng định đạng email">*</asp:RegularExpressionValidator>
                    </p>
                    <p>
                        <label>
                        Họ tên</label>
                        <asp:TextBox ID="txt_name" class="input-medium" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RFV_name" runat="server" ControlToValidate="txt_name" ErrorMessage="Chưa nhập họ tên">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <label>
                        Giới tính</label> 
                        <asp:ListBox ID="rd_sex" runat="server" class="input-medium">
                            <asp:ListItem Value="0" Selected="True">Nam</asp:ListItem>
                            <asp:ListItem Value="1">Nữ</asp:ListItem>
                        </asp:ListBox>
                    </p>
                    <p>
                        <label>
                        Giấy tờ tùy thân</label>
                        <asp:DropDownList ID="DL_Indentication" runat="server" class="input-short">
                        </asp:DropDownList><br/><br />
                        <asp:TextBox ID="txt_giayto" class="input-medium" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RFV_giayto" runat="server" ControlToValidate="txt_giayto" ErrorMessage="Chưa nhập giấy tờ">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <label>
                        Điện thoại</label>
                        <asp:TextBox ID="txt_phone" class="input-medium" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RFV_phone" runat="server" ControlToValidate="txt_phone" ErrorMessage="Chưa nhập số điện thoại">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <label>
                        Địa chỉ</label>
                        <asp:TextBox ID="txt_diachi" class="input-medium" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RFV_diachi" runat="server" ControlToValidate="txt_diachi" ErrorMessage="Chưa nhập địa chỉ">*</asp:RequiredFieldValidator>
                    </p>
                    <fieldset>
                        <asp:Button ID="bt_save" runat="server" Text="Lưu" class="submit-green" onclick="bt_save_Click"/>
                        <asp:HyperLink ID="HyperLink1" runat="server" CssClass="submit-gray" ForeColor="White" NavigateUrl="~/Admin/UserMn.aspx">Hủy bỏ</asp:HyperLink>
                    </fieldset>
                    
                </div>
                <!-- End .module-body -->
            </div>
            <!-- End .module -->
        	<div style="clear:both;">
            </div>
    </div>
        <!-- End .grid_12 -->
        <!-- Settings-->
        <!-- Password -->
        <div style="clear:both;">
        </div>
    </div>
        
    <!-- End .container_12 -->
</asp:Content>
